package com.hmall.api.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cart-service", path = "/inner/carts", fallbackFactory = CartClientFallbackFactory.class)
public interface CartClient {
    @DeleteMapping
    void deleteCartItemByIds(@RequestParam("userId")Long userId, @RequestParam("ids") List<Long> ids);
}
